#ifndef __MavenPackageWidget__H__
#define __MavenPackageWidget__H__

#include <QWidget>

QT_BEGIN_NAMESPACE
class QLabel;
class QGroupBox;
class MavenResult;
class QLineEdit;
class QTextEdit;
QT_END_NAMESPACE
class MavenPackageWidget : public QWidget
{
    Q_OBJECT
public:
    explicit MavenPackageWidget(QWidget *parent=nullptr);

    void setPackage(const MavenResult *package);

signals:
    void emitSearchGroup(QString group);
    void emitSearchArtifact(QString artifact);
    void emitSearchVersion(QString group, QString artifact, QString version);

private:
    QLineEdit *m_groupId;
    QLineEdit *m_artifactId;
    QLineEdit *m_version;
    QLineEdit *m_repositoryId;
    QGroupBox *packageInfoBox;


    QTextEdit *m_maven;
    QTextEdit *m_gradle;
};


#endif  //!__MavenPackageWidget__H__